﻿@model IEnumerable<_2shitong.Models.Message>

@{
    ViewBag.Title = "2事通";
}

<h2>@ViewBag.Title</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            MsgID
        </th>
        <th>
            Title
        </th>
        <th>
            MsgContent
        </th>
        <th>
            CreateDate
        </th>
        <th>
            ModifyDate
        </th>
        <th>
            Publisher
        </th>
        <th>
            CheckFlag
        </th>
        <th>
            Good
        </th>
        <th>
            Bad
        </th>
    </tr>

@foreach (var item in Model) {    
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
        <td>
            @item.MsgID
        </td>
        <td>
            @item.Title
        </td>
        <td>
            @item.MsgContent
        </td>
        <td>
            @String.Format("{0:g}", item.CreateDate)
        </td>
        <td>
            @String.Format("{0:g}", item.ModifyDate)
        </td>
        <td>
            @item.Publisher
        </td>
        <td>
            @item.CheckFlag
        </td>
        <td>
            @item.Good
        </td>
        <td>
            @item.Bad
        </td>
    </tr>
}

</table>

